package org.ccay.core.test.mock.jms;

import javax.jms.Connection;
import javax.jms.ConnectionConsumer;
import javax.jms.ConnectionMetaData;
import javax.jms.Destination;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.ServerSessionPool;
import javax.jms.Session;
import javax.jms.Topic;

/**
 * Mock JMS Connection for test.
 */
public class MockConnection implements Connection {

	public void close() throws JMSException {
	}

	public ConnectionConsumer createConnectionConsumer(Destination arg0,
			String arg1, ServerSessionPool arg2, int arg3) throws JMSException {
		return null;
	}

	public ConnectionConsumer createDurableConnectionConsumer(Topic arg0,
			String arg1, String arg2, ServerSessionPool arg3, int arg4)
			throws JMSException {
		return null;
	}

	public Session createSession(boolean arg0, int arg1) throws JMSException {
		return new MockSession();
	}

	public String getClientID() throws JMSException {
		return null;
	}

	public ExceptionListener getExceptionListener() throws JMSException {
		return null;
	}

	public ConnectionMetaData getMetaData() throws JMSException {
		return null;
	}

	public void setClientID(String arg0) throws JMSException {
	}

	public void setExceptionListener(ExceptionListener arg0)
			throws JMSException {
	}

	public void start() throws JMSException {

	}

	public void stop() throws JMSException {

	}

}
